package com.css.ids.server.task;

import java.util.concurrent.Callable;

import com.css.ids.server.common.Constants;

public class PushTaskToThreadPoolThread extends Thread {
	private Callable<?> task;
	public PushTaskToThreadPoolThread(Callable<?> task){
		this.task = task;
	}
	@Override
	public void run() {
		try {
			Thread.sleep(Constants.sendTime);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		ThreadPool.submit(task);
	}
}
